import glob

# for p in glob.glob('E:/my-test/model_test/*'):  # 遍历目录
#     print(p)


# for p in glob.glob('E:/my-test/model_test/*/*'):  # 遍历目录和子文件夹
#     print(p)

# for p in glob.glob('E:/my-test/model_test/*/*.txt'):  # 遍历并过滤
#     print(p)

# for p in glob.glob('E:/my-test/model_test/*/*[0-8].txt'):  # 遍历并用[x-y]匹配文件长度
#     print(p)

for p in glob.glob('E:/my-test/model_test/*/?.txt'):  # 遍历并用?匹配1位文件长度
    print(p)